package com.capgemini.cn.authority.rest.valueobject;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * Created at 2017/9/18
 *
 * @author Andriy
 */
@JsonSerialize
@NoArgsConstructor
@AllArgsConstructor
public class DataPage {

    @Getter
    @Setter
    private int totalPages;

    @Getter
    @Setter
    private long totalElements;

    @Getter
    @Setter
    private int number;

    @Getter
    @Setter
    private int size;

    @Getter
    @Setter
    private boolean first;

    @Getter
    @Setter
    private boolean last;
}
